<a href='https://github.com/angular/angular.js/edit/v1.8.x/docs/content/error/$parse/lval.ngdoc?message=docs(error%2Flval)%3A%20describe%20your%20change...' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit">&nbsp;</i>Improve this Doc</a>


<h1>Error: $parse:lval
  <div><span class='hint'>Trying to assign a value to a non l-value</span></div>
</h1>

<div>
    <pre class="minerr-errmsg" error-display="Trying to assign a value to a non l-value">Trying to assign a value to a non l-value</pre>
</div>

<h2 id="description">Description</h2>
<div class="description">
  <p>Occurs when an expression is trying to assign a value to a non-assignable expression.</p>
<p>This can happen if the left side of an assigment is not a valid reference to a variable
or property. E.g. In the following snippet <code>1+2</code> is not assignable.</p>
<pre><code>(1+2) = &#39;hello&#39;;
</code></pre>

</div>


